package com.jobchecks.ping.api.request;

import com.jobchecks.base.api.request.BaseReq;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * 测试服务-新增接口-请求入参
 *
 * @author huangjinjia
 */
@Data
public class TestReq  extends BaseReq{

    @ApiModelProperty( value = "姓名", required = true)
    @NotBlank(message = "姓名不能为空")
    private String name;

    @ApiModelProperty( "年龄")
    @NotNull(message = "年龄不能为空")
    private Integer age;

    @ApiModelProperty( "出生日期")
    private Date bonth;
}
